import request from "@/axios";

// 实物库存明细表
export const getInventoryDetails = option =>
  request({
    url: "/api/order/getentityinventorydetailpage",
    method: "post",
    data: option
  });

// 实物库存详情
export const getentityinventorybyid = option =>
  request({
    url: "/api/order/getentityinventorybyid",
    method: "get",
    params: option
  });

// 新增实物库存
export const addentityinventory = option =>
  request({
    url: "/api/order/addentityinventory",
    method: "post",
    data: option
  });

// 编辑实物库存
export const updateentityinventory = option =>
  request({
    url: "/api/order/updateentityinventory",
    method: "post",
    data: option
  });

// 删除实物库存
export const deleteentityinventory = option =>
  request({
    url: "/api/order/deleteentityinventory",
    method: "post",
    data: option
  });

// 批量删除实物库存
export const batchdeleteentityinventory = option =>
  request({
    url: "/api/order/batchdeleteentityinventory",
    method: "post",
    data: option
  });

// 获取可关联实物库存列表
export const getentityinventorylist = option =>
  request({
    url: "/api/order/getentityinventorylist",
    method: "get",
    params: option
  });

// 获取订单已关联实物库存
export const getrelatedentityinventorylist = option =>
  request({
    url: "/api/order/getrelatedentityinventorylist",
    method: "get",
    params: option
  });

// 供应商实物库存列表
export const getproviderentityinventorypage = option =>
  request({
    url: "/api/order/getproviderentityinventorypage",
    method: "post",
    data: option
  });

// 导出实物库存明细表
export const exportentityinventorydetail = option =>
  request({
    url: "/api/file/exportentityinventorydetail",
    method: "post",
    data: option,
    responseType: "blob"
  });
